package com.blog.service;

import com.blog.entity.Blog;

import java.util.List;
import java.util.Map;

/**
 * @Author SunBingRui
 * @Date 2020/5/21 13:40
 */
public interface BlogService {
    List<Blog> countList();

    List<Blog> countReadList();

    List<Blog> countUpHitList();

    List<Blog> list(Map<String, Object> paramMap);

    Long getTotal(Map<String, Object> paramMap);

    Blog findById(Integer paramInteger);

    int update(Blog paramBlog);

    Blog getLastBlog(Integer paramInteger);

    Blog getNextBlog(Integer paramInteger);

    Integer add(Blog paramBlog);

    Integer delete(Integer paramInteger);

    int getBlogByTypeId(int paramInteger);
}
